
#pragma once

#include <map>
#include <vector>
#include <string>
#include <stdio.h>
#include <sstream>
#include <system_error>
#include "src/aiwendb.h"

namespace awdb
{
	typedef std::map<std::string, std::string> MStr;

	typedef std::vector<const char *> VCStr;

	class Data final
	{
		public:

			~Data( void );

			Data( const std::string &database_filename = "test.awdb" );

			int locate(const std::string &ip_address);

		private:
			AWDB_s awdb;
	};
}
